package ch12;

import com.fpinjava.common.Tuple;

import java.util.List;

public class Generator {
    public static Tuple<Integer, RNG> integer(RNG rng) {
        return rng.nextInt();
    }

    public static Tuple<Integer, RNG> integer(RNG rng, int limit) {
        Tuple<Integer, RNG> random = rng.nextInt();
        return new Tuple<>((Math.abs(random._1 % limit)), random._2);
    }

    public Tuple<List<Integer>, RNG> integers(RNG rng, int length) {

    }
}
